package com.cn.serverline.lineicp.productionLine.entity;

import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Data;
import java.sql.Timestamp;

/**
 * 滚动计划-工段表
 *
 * @author Gmr
 * @since 2024-07-28
 */
@TableName("PLAN_WORK_SECTION")
@Data
@EqualsAndHashCode(callSuper = false)
public class WorkSection extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    @ChineseDescription("主键ID")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 工段名
     */
    @ApiModelProperty(value = "工段名")
    @ChineseDescription("工段名")
    @TableField("WORK_SECTION_NAME")
    private String workSectionName;

    /**
     * 产品型号前缀
     */
    @ApiModelProperty(value = "产品型号前缀")
    @ChineseDescription("产品型号前缀")
    @TableField("PRODUCT_MODEL_PREFIX")
    private String productModelPrefix;

    /**
     * 工段编码
     */
    @ApiModelProperty(value = "工段编码")
    @ChineseDescription("工段编码")
    @TableField("SECTION_CODE")
    private String sectionCode;

    /**
     * 乐观锁
     */
    @ApiModelProperty(value = "乐观锁")
    @ChineseDescription("乐观锁")
    @TableField("VERSION")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long version;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @ChineseDescription("备注")
    @TableField("REMARK")
    private String remark;
}
